@charset'utf-8';
@import "_mixin";

html, body {
  background: url("../img/bg.png") repeat #F9F9F7;
}

#header {
  min-height: 69px;
  border-bottom: 1px solid @colorBorder;
  background-color: #FFF;
  .css3-box-shadow(0px 0px 6px @colorBorder3);
  line-height: 66px;
}

#header-top-color {
  background-color: @colorFont;
  .left {
    height: 4px;
  }
  .red {
    background-color: @colorRed;
    width: 18%;
  }
  .orange {
    background-color: @colorOrange;
    width: 14%;
  }
  .green {
    background-color: @colorGreen;
    width: 20%;
  }
  .blue {
    background-color: @colorBlue;
    width: 28%;
  }
  .purple {
    background-color: @colorPurple;
    width: 11%;
  }
}

#logo {
  margin: 0;
  a {
    color: #666;
    &:hover {
      color: #222;
      text-shadow: 0 0 2px #DDD;
    }
  }
}

#logo-desc {
  color: #AAA;
  font-size: 12px;
  margin-left: 1em;
  vertical-align: top;
}

#login-container {
  width: 732px;
  .h1 {
    font-weight: bold;
    color: #888;
    margin: 1.5em 0 1em 0;
  }
}

#login-form-container {
  width: 468px;
  .item {
    position: relative;
  }
  label {
    position: absolute;
    line-height: 44px;
    color: @colorFont2;
    font-size: 16px;
    width: 3.3em;
    text-align: right;
  }
  .ipt {
    width: 384px;
    padding-left: 66px;
    font-size: 16px;
  }
  .chk-span {
    padding-right: 1.4em;
  }
}

#login-secondary {
  width: 228px;
  padding-top: .4em;
  color: @colorFont2;
  .social-login-title {
    font-size: 16px;
    margin-bottom: .5em;
  }
}

#forget-password {
  line-height: 42px;
}

#admin-nav {
  margin-left: 2.5em;
  a {
    margin-right: 1.5em;
  }
}

#admin-nav-2 {
  a {
    margin-left: 1.5em;
  }
}

#admin-nav, #admin-nav-2 {
  li {
    float: left;
    a {
      font-size: 16px;
      color: @colorFont2;
      padding: 0 .6em 6px .6em;
      border-bottom: 2px solid transparent;
      &:hover {
        color: @colorFont;
        border-bottom-color: @colorBorder;
      }
    }
    a.active {
      color: @colorFont;
      border-bottom-color: @colorBorder;
    }
  }
}

#logout {
  color: @colorRed !important;
  &:hover {
    border-bottom-color: @colorRed1 !important;
  }
  span {
    color: @colorFont2;
    font-size: 12px;
  }
}

#article-edit-title {
  border: none;
  font-size: 20px;
  background-color: transparent;
  width: 75%;
  height: 48px;
  outline: none;
  box-sizing: content-box;
  padding-left: 0;
}

#article-edit-title-item {
  background-color: #FFF;
}

#article-edit-submit {
  right: 1em;
  top: 15px;
}

#article-edit-delete {
  right: 9em;
  top: 15px;
}

#article-edit-content-item {
  background-color: #edeef2;
  min-height: 31em;
}

#article-edit-form {
  label {
    font-size: 16px;
    line-height: 42px;
    margin-right: 1em;
    color: @colorFont2;
    min-width: 3em;
    display: inline-block;
  }
  .r {
    margin-left: 5em;
  }
  margin-bottom: 2em;
}

#article-edit-slug {
  width: 400px;
}

#article-edit-content {
  width: 100%;
}

#article-list-edit-btn {
  margin-top: 1.5em;
  margin-right: 1em;
}

#category-list-edit-btn, #user-list-edit-btn {
  margin-top: 1.5em;
}

#article-list-category, #comment-list-meta {
  width: 200px;
  margin-right: 3.5em;
  li {
    cursor: pointer;
    a {
      color: @colorFont;
      display: block;
    }
  }
}

#comment-list-meta {
  .num {
    padding: 1px 6px 2px 6px;
    margin-left: 1.5em;
    background-color: @colorOrange2;
    color: #FFF;
    .css3-border-radius(.3em);
  }
}

#article-list, #comment-list {
  border-top: 1px solid @colorBorder2;
  margin-left: 246px;
}

#comment-list {
  padding-top: 2em;
  margin-left: 0;
  min-width: 800px;
}

.article-list-item {
  padding: 1em 2em 1.4em 2em;
  border-bottom: 1px solid @colorBorder2;
  height: auto;
  .top {
    a {
      color: @colorFont;
    }
    height: 48px;
  }
  .status {
    margin-top: 6px;
    padding: 3px 9px;
    background: @colorBlue;
    color: #FFF;
    .css3-border-radius(.3em);
  }
  &:hover {
    background: rgba(255, 255, 255, .5);
  }
  .btm {
    color: @colorFont2;
    span {
      margin-right: 1.5em;
    }
  }
}

#article-list-pager {
  margin: 2em 0 1em 246px;
}

#category-add-form {
  width: 860px;
  label {
    font-size: 16px;
    line-height: 42px;
    margin-right: 1em;
    color: @colorFont2;
    min-width: 3em;
    display: inline-block;
    text-align: right;
  }
}

#category-add-desc, #article-edit-desc {
  margin-left: 3px;
  margin-top: 3px;
  width: 400px;
  height: 100px;
  resize: none;
}

#article-edit-desc {
  margin-left: 3px;
  margin-top: 3px;
  width: 60%;
  height: 160px;
  resize: none;
}

#category-add-submit {
  margin-left: 5.1em;
}

#category-list-container, #user-list-container, #admin-setting-container {
  width: 860px;
}

#category-list, #user-list {
  border-top: 1px solid @colorBorder2;
}

.category-list-item {
  padding: 1em 2em 1.4em 2em;
  border-bottom: 1px solid @colorBorder2;
  height: auto;
  &:hover {
    background: rgba(255, 255, 255, .5);
    .num {
      border-color: @colorOrange2;
      color: #FFF;
      background-color: @colorOrange1;
    }
  }
  .slug {
    color: @colorFont2;
  }
  .desc {
    color: @colorFont2;
    margin-left: 3em;
    margin-top: .8em;
  }
  .num {
    padding: 4px 12px;
    border: 1px solid transparent;
    .css3-border-radius(.3em);
  }
}

.user-list-item {
  padding: 1em 2em 1.4em 2em;
  border-bottom: 1px solid @colorBorder2;
  height: auto;
  &:hover {
    background: rgba(255, 255, 255, .5);
  }
  .info {
    span {
      color: @colorBorder;
      margin-right: 1.5em;
    }
  }
  .role {
    padding: 4px 12px;
    .css3-border-radius(.3em);
    margin-top: .5em;
  }
  .role.admin {
    background-color: @colorRed;
    color: #FFF;
  }
  .role.editor {
    background-color: @colorPurple;
    color: #FFF;
  }
  .role.reader {
    background-color: @colorBlue;
    color: #FFF;
  }
  .role.loser {
    background-color: @colorFont2;
    color: #FFF;
  }
  .status.inactive {
    font-weight: bold;
    color: @colorFont;
  }
}

#user-add-form-container {
  width: 960px;
}

#user-add-form {
  label {
    font-size: 16px;
    line-height: 42px;
    margin-right: 1em;
    color: @colorFont2;
    width: 4em;
    display: inline-block;
    text-align: right;
  }
  .meta {
    margin-right: 5em;
  }
  .ipt {
    width: 300px;
  }
}

#user-add-desc {
  margin-left: 3px;
  margin-top: 3px;
  width: 300px;
  height: 80px;
  resize: none;
}

#user-add-submit {
  margin-left: 6.5em;
}

#user-delete-btn, #category-delete-submit {
  margin-left: 2em;
}

#admin-setting-form {
  label {
    font-size: 16px;
    line-height: 42px;
    margin-right: 1em;
    color: @colorFont2;
    width: 5.5em;
    display: inline-block;
    text-align: right;
  }
  .ipt {
    width: 400px;
  }
}

input#admin-setting-article-size {
  width: 60px !important;
}

#admin-setting-submit {
  width: 100px;
  margin-left: 6px;
}

.comment-item {
  .comment-id {
    font-size: 14px;
    font-weight: bold;
    margin-right: 1em;
  }
  .comment-avatar {
    width: 40px;
    height: 40px;
    padding: 2px;
    border: 1px solid @colorBorder2;
    background-color: #FFF;
    margin-right: 1em;
    .css3-border-radius(3px);
  }
  .comment-meta-header {
    line-height: 18px;
    padding-bottom: 6px;
    >* {
      margin-right: 1em;
    }
    &:hover {
      .comment-reply, .comment-approve, .comment-remove, .comment-spam {
        display: inline;
      }
    }
  }
  .comment-time {
    font-family: Verdana, Tahoma, sans-serif;
    color: @colorFont2;
  }
  .comment-author {
    color: @colorBlue;
  }
  .comment-reply {
    color: @colorFont2;
    font-size: 12px;
    &:hover {
      color: @colorFont;
    }
    &.replying {
      display: inline;
    }
  }
  .comment-content, .comment-reply-comment {
    margin-left: 89px;
  }
  .comment-reply-comment {
    font-size: 12px;
    background-color: #FFF;
    padding: 4px 12px;
    border: 1px solid @colorBorder2;
    .css3-border-radius(.3em);
    margin-top: 1em;
  }
  .comment-parent-name {
    padding-right: .5em;
    color: @colorFont2;
  }
  padding-bottom: 1.5em;
  margin-bottom: 1.5em;
  border-bottom: 1px dotted @colorBorder2;
  .comment-article {
    font-size: 12px;
    color: @colorFont2;
  }
  .comment-approve {
    font-size: 12px;
    color: @colorGreen1;
    &:hover {
      color: @colorGreen;
    }
  }
  .comment-remove {
    font-size: 12px;
    color: @colorOrange2;
    &:hover {
      color: @colorOrange1;
    }
  }
  .comment-spam {
    font-size: 12px;
    color: @colorRed1;
    &:hover {
      color: @colorRed;
    }
  }
}

#comment-list-container {
  margin-bottom: 4em;
  .numA {
    display: none;
  }
}

#comment-pager {
  margin-bottom: 1.8em;
}

#comment-reply-form {
  margin-top: 1.2em;
}

#comment-reply-content {
  width: 400px;
  height: 10em;
  margin-right: 1.5em;
  resize: none;
}

.extend-container{
  padding: .5em 1.2em 1.2em 1.2em;
  border-top: 1px dashed @colorBorder3;
  border-bottom: 1px dashed @colorBorder3;
  margin-top: -1px;
  width: 42%;
  margin-right: 4%;
}

#link-list-add{
  margin-top: 1.2em;
}

#link-list-table{
  margin-top: 1em;
  .opt{
    width: 8em;
    font-size: 12px;
    a{
      margin-left: 1em;
      display: none;
    }
    .link-delete{
      color: @colorRed;
    }
  }
  tr{
    &:hover{
      .opt a{
        display: inline;
      }
    }
  }
  .link-url{
    color: @colorFont2;
    font-weight: bold;
    &:hover{
      color: @colorFont;
    }
  }
  .link-pending{
    margin-left: 1em;
    font-size: 12px;
    padding: 2px 6px;
    background-color: @colorOrange;
    color: #FFF;
    .css3-border-radius(3px);
  }
  .link-id{
    max-width: 2em;
  }
}

#link-add-form{
  width: 860px;
  label {
    font-size: 16px;
    line-height: 42px;
    margin-right: 1em;
    color: @colorFont2;
    min-width: 3em;
    display: inline-block;
    text-align: right;
  }
  textarea{
    margin-left: 3px;
    margin-top: 3px;
    width: 400px;
    height: 100px;
    resize: none;
  }
  .btn{
    margin-left: 5.1em;
  }
  input.ipt{
    width: 280px;
  }
}